import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import {NgZorroAntdModule, NZ_I18N, zh_CN} from 'ng-zorro-antd';
import { LayoutModule } from '@layout/layout.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule} from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { registerLocaleData, CommonModule } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { MainModule } from './pages/main.module';

import { AuthService } from '@core/public/auth/auth.service';
import { FirstPageService } from '@core/services/first-page.service';
import { SystemConfigService } from '@core/services/system-config.service';

registerLocaleData(zh);

@NgModule({
  declarations: [AppComponent],
  imports: [
    CommonModule,
    BrowserModule,
    AppRoutingModule,
    NgZorroAntdModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    LayoutModule,
    MainModule
  ],
  providers: [
    { provide: NZ_I18N, useValue: zh_CN },
    AuthService,
    FirstPageService,
    SystemConfigService
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}
